<%@page contentType="text/html;charset=utf-8"%>
<%@include file="../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>用户注册 - 当当网</title>
		<link href="<%=request.getContextPath()%>/css/shop_cart.css" rel="stylesheet" type="text/css" />
		<link href="<%=request.getContextPath()%>/css/login.css"
			rel="stylesheet" type="text/css" />
		<link href="<%=request.getContextPath()%>/css/page_bottom.css"
			rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../js/jquery-1.7.2.js" charset="utf-8"></script>
		<script type="text/javascript" src="../js/jquery.validate.js" charset="utf-8"></script>
		<script type="text/javascript" src="../js/messages_cn.js" charset="utf-8"></script>
		<script type="text/javascript" src="../js/jquery.metadata.js" charset="utf-8"></script>
		<script type="text/javascript" src="../js/addressFormValidation.js" charset="utf-8"></script>
		<script type="text/javascript">
			$(function (){
				var validator=$("#addressForm").validate(validateOptions);
			});
			
		</script>
		
		<style type="text/css">
		    /*jQuery.Validate自定义样式开始*/
		    
			#addressForm label.error{
		    		font-weight: bold;
		    		float:none;
		            background: url(../images/unchecked.gif) no-repeat 0px 0px;
		            color: red;
		            padding-left: 1.5em;
		            vertical-align:top;
		    }
		    #addressForm label.success{
		    		float:none;
		            background: url(../images/checked.gif) no-repeat 0px 0px;
		            padding-left: 1.5em;
		            vertical-align:top;
		            color: black;
		    }
		    input.error{
		            border: dashed 1px red;
		            background-color: #E8FBFF;
		    }
		   	/*jQuery.Validate自定义样式结束*/
		</style> 
	</head>
	<body>
		<%@include file="../common/head1.jsp"%>
		<div class="flow_step_no1 flow_step_no0_n">
		<div class="flow_step">
			<ol class="cols4">
				<li class="step_1">1.填写送货地址</li>
				<li class="step_2">2.确认信息</li>
				<li class="step_3">3.订单生成成功</li>
			</ol>
		</div>
		</div>
		<div class="fill_message">
		<%@include file="./order_address.jsp"%>
		
		<form id="addressForm" method="post" action="confirm.action">
			<h2>
				以下均为必填项
			</h2>
			<table class="tab_login">
				<tr>
					<td valign="top" class="w1">
						收货人姓名：
					</td>
					<td>
						<input type="text" name="address.receiveName" value="" id="receiveName" class="text_input">
						<div class="text_left" id="emailValidMsg">
							<p>
								请填写收货人的真实姓名。
							</p>
						</div>
					</td>
				</tr>
				<tr>
					<td valign="top" class="w1">
						收货人地址：
					</td>
					<td>
						<textarea name="address.fullAddress" id="fullAddress" class="text_input"></textarea>
						<div class="text_left" id="nickNameValidMsg">
							<p>
								请填写收货人的详细地址
							</p>
						</div>
					</td>
				</tr>
				<tr>
					<td valign="top" class="w1">
						邮政编码：
					</td>
					<td>
						<input type="text" name="address.postalCode" id="postalCode" class="text_input">
						<div class="text_left" id="passwordValidMsg">
							<p>
								请填写邮政编码
							</p>
						</div>
					</td>
				</tr>
				<tr>
					<td valign="top" class="w1">
						联系电话：
					</td>
					<td>
						<input type="text" name="address.mobile" id="mobile" class="text_input">
						<div class="text_left" id="passwordValidMsg">
							<p>
								请填写收件人手机或电话
							</p>
						</div>
					</td>
				</tr>
			</table>
			<br />
			<br />
			<br />
			<div class="login_in">
				<input type="button" class="btn_hit_bx" value="取消" onclick="history.go(-1);"/>
				<input type="submit" class="btn_hit_bx" value="下一步" />
			</div>
		</form>
		</div>
		<%@include file="../common/foot1.jsp"%>
	</body>
</html>

